package com.example.Wisdompark.dao;

import com.example.Wisdompark.pojo.Entry_Order;
import com.example.Wisdompark.pojo.Out_Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface OutOrderMapper {
    // 查询所有入库订单
    List<Out_Order> queryAllOrder();

    // 插入一个订单
    int insertAOrder(Out_Order out_order);

    // 删除一个订单
    int delAOrder(@Param("order_num")String order_num);

    // 更新一个订单
    int updateAOrder(Out_Order out_order);

    // 根据订单编号查询订单信息
    Out_Order queryByOrderNum(@Param("order_num")String order_num);

    // 更新状态
    int updateOrderState(@Param("order_num")String order_num,
                         @Param("state")int state);

    // 根据状态查询订单
    List<Out_Order> queryOrderByState(Integer state);
}
